package com.zh.authority.service;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javacommon.base.*;
import cn.org.rapid_framework.page.*;
import com.zh.authority.model.*;
import com.zh.authority.dao.*;
import com.zh.authority.vo.query.*;
/**
 * @author grey2 email:grey2@126.com
 * @version 1.0
 * @since 1.0
 */
@SuppressWarnings("unchecked")
@Service
@Transactional
public class UserManager extends BaseManager<User,java.lang.Integer>{

	private UserDao userDao;
	/**增加setXXXX()方法,spring就可以通过autowire自动设置对象属性,请注意大小写*/
	public void setUserDao(UserDao dao) {
		this.userDao = dao;
	}
	public EntityDao getEntityDao() {
		return this.userDao;
	}
	
	@Transactional(readOnly=true)
	public Page findPage(UserQuery query) {
		return userDao.findPage(query);
	}
	
}
